#/bin/sh
# 启动程序

APP_NAME=nupp-channel-boot

pid=`ps ux | grep $APP_NAME | grep java | grep -v "grep" | awk '{print $2}'`

if [ -n "$pid" ] ; then
  echo "$APP_NAME Server has running. No need to restart..."
  exit 0;
fi
    
OPTS="-Xms256m -Xmx512m -Dfile.encoding=UTF-8"

nohup java $OPTS -jar $APP_NAME.jar & > nohup.out

